<template>
  <!-- 首页轮播图 -->
  <van-swipe class="home-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="(item, index) in list" :key="index">
      <img v-lazy="item" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: 'HomeSwiper',
  props: {
    list: Array,
  },
}
</script>

<style lang="scss" scoped>
.home-swipe {
  margin: 0.1rem;
  border-radius: 0.1rem;
  .van-swipe-item {
    img {
      width: 100%;
      height: 200px;
    }
  }
}
</style>
